package com.ynny.extends_.bean10;

import com.ynny.extends_.bean04.Bird;
import com.ynny.extends_.bean04.Cat;
import com.ynny.extends_.bean04.Dog;

public class PetShopTest {

    public static void main(String[] args) {

        PetShop petShop = new PetShop();

//        petShop.saleDog(new Dog());
//        petShop.saleCat(new Cat());
//        petShop.saleBird(new Bird());

        petShop.saleAnimal(new Cat());
        petShop.saleAnimal(new Dog());
        petShop.saleAnimal(new Bird());
    }
}
